package org.dbstar.scheduler.control.db.dependency;

import java.sql.Types;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.SqlParameter;
import org.springframework.jdbc.object.SqlUpdate;

/**
 * JobDependency的Delete对象
 * 
 * @author 代波
 * @since 1.0.0
 * @version 1.0.0
 * @date 2012-6-16
 */
public class JobDependencyDelete extends SqlUpdate {
	public JobDependencyDelete(JdbcTemplate jdbcTemplate) {
		super();
		setJdbcTemplate(jdbcTemplate);
		setSql("DELETE FROM SCHD_JOB_DEPENDENCY WHERE SYSTEM_IDENTIFIER = ? AND SEQUENCE = ?");
		declareParameter(new SqlParameter("SYSTEM_IDENTIFIER", Types.VARCHAR));
		declareParameter(new SqlParameter("SEQUENCE", Types.INTEGER));
	}
}
